package com.maopuyu.services;


import com.maopuyu.entity.NavItem;
import com.maopuyu.entity.Video;
import com.maopuyu.repositories.VideoRepository;
import com.maopuyu.repositories.WeixinNavRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class NavItemService {
    @Autowired
    private WeixinNavRepository weixinNavRepository;


    public List<NavItem> findAllByCategoryId(Integer id) {
        return weixinNavRepository.findAllByCategoryId(id);
    }
}
